/*********************************************************************
 *
 *  elksip - a multi-platform Sip Phone Server
 *
 *  file: elk_sip_address.h   
 *
 *  Copyright 2011-2013 Elksip.
 *
 ********************************************************************/

#ifndef _ELK_SIP_ADDRESS_H_
#define _ELK_SIP_ADDRESS_H_

/*
From: <sip:watson@bell-tel.com>;tag=19
From: "Bob" <sips:bob@biloxi.com> ; tag=a48s

 */
typedef struct tdsip_Address
{
    char *display; 
    char *name;
    char *domain;
    char *tag;
}Sip_Address;

void Sip_address_init(Sip_Address *address);
void Sip_address_free(Sip_Address *address);
void Sip_address_print(Sip_Address *address);
int  Sip_address_parse(Sip_Address *address, const char *value);

#include"sip_str.h"
void Sip_to2str(const Sip_Address *to, Sip_string *str);
void Sip_from2str(const Sip_Address *from, Sip_string *str);


#endif
